import request from '@/axios';

export const getList = (current, size, params) => {
  return request({
    url: '/position/certificateClassification/list',
    method: 'get',
    params: {
      parentId: -1
    }
  })
}

export const getDetail = (id) => {
  return request({
    url: '/position/certificateClassification/detail',
    method: 'get',
    params: {
      id
    }
  })
}

export const remove = (ids) => {
  return request({
    url: '/position/certificateClassification/remove',
    method: 'post',
    params: {
      ids,
    }
  })
}

export const add = (row) => {
  return request({
    url: '/position/certificateClassification/save',
    method: 'post',
    data: {
      parentId: -1,
      ...row
    }
  })
}

export const update = (row) => {
  return request({
    url: '/position/certificateClassification/update',
    method: 'post',
    data: row
  })
}

